//
//  EDAppInfo.swift
//  EddidOne
//
//  Created by IMac  on 2020/5/19.
//  Copyright © 2020 Ad. All rights reserved.
//

import UIKit

struct APR_AppInfo {
    /// 包名
    static func func_appBundleId() -> String {
        let infoDictionary: [String: Any]? = Bundle.main.infoDictionary
        let bundleId = infoDictionary?["CFBundleIdentifier"] as? String ?? ""
        return bundleId
    }
    /// build号
    static var func_build: String = {
        let infoDictionary: [String: Any]? = Bundle.main.infoDictionary
        let build = infoDictionary?["CFBundleVersion"] as? String ?? ""
        return build
    }()
    /// 版本号
    static func func_appVersion() -> String {
        let infoDictionary: [String: Any]? = Bundle.main.infoDictionary
        let version = infoDictionary?["CFBundleShortVersionString"] as? String ?? ""
        return version
    }
}
